<?php
require_once './config/sys_config.php';
require_once MB_APP_DIR  . '/global.class.php';
require_once MB_VIEW_DIR . '/template_view.class.php';
require_once 'GuestAPI.php';

$logger = new MBLog($mbConfig["log_path"], "login", false);
MBGlobal::setLogger($logger);

$guestAPI = new GuestAPI();

$action = $_POST['a'];
if($action=="cb"){
	$kw  = $_POST['k'];
	$num = intval($_POST['n']);
	echo $guestAPI->getCityBroadcast($kw, $num);
}
?>